package com.ita.tba.service;

import java.util.List;
import java.util.Map;

import com.ita.tba.po.Cart;
import com.ita.tba.po.Dish;
import com.ita.tba.po.OrderList;
import com.ita.tba.po.User;

public interface Controller {
	boolean isEmailExist(String email);
	boolean isPasswordCorrect(String email, String password);
	public void addUser(User user);
	public boolean addToCart(int dishId, int uid);
	public int getUid(String email);
	public Cart getThisCart(int uid);
	public int getDid(String dname);
	public boolean removeDish(int dishId, int uid);
	public boolean addOrderList(OrderList orderList);
	public boolean clearCart(int uid);
	public List<OrderList> getOrderList(int uid);
}
